def main():
    print("请输入你的体重(KG)，身高(cm)，年龄,性别")
    input_weight = float(input())
    input_height = float(input())
    input_age = int(input())
    input_gender = input("men or women")
    if input_gender == "men":
        bmr = (13.7 * input_weight) + (5.0 * input_height) - (6.8 * input_age) + 66
    elif input_gender == "women":
        bmr = (9.6 * input_weight) + (1.8 * input_height) - (4.7 * input_age) + 655
    else:
        bmr = 1

    if bmr != 1:
        print("您的性别为{}，体重为{}kg，身高为{}cm，年龄为{}岁，BMR为{}"
              .format(input_gender, input_weight,input_height,input_age, bmr))
    else:
        print("对不起，您输入的信息有误")


if __name__ == "__main__":
    main()